Xbasic

Toolbar::open Function

Syntax

<toolbar> as P = toolbar::open(name as C [, flagGlobal as L])

Arguments

name

The name of the toolbar.

flagGlobal

Logical

Description

Opens and returns a pointer to a toolbar.

Discussion

The Toolbar::open() function opens the specified Toolbar_Name and returns an object pointer to the toolbar.

Example

The example below opens a toolbar called "My Own Toolbar":

tbar = toolbar::open("My Own Toolbar")

Alpha Five V10 and Prior

Changes were made in Alpha Anywhere that changed how the open() method can be invoked. The syntax above is supported in Alpha Five version 11 and all versions of Alpha Anywhere.

In Alpha Five version 10 and prior, however, toolbar::open() is not suported. Instead, you must use the dot operator to call the function, as shown in the example below:

tbar = toolbar.open("My Own Toolbar")

Limitations

Desktop applications only

See Also